<?php

namespace Service\AjaxModel;

class AjaxResponse
{
    public $data;

    public function __construct($data = null)
    {
        $this->data = $data;
    }

    public static function success($data = null): AjaxResponse
    {
        return new AjaxResponse($data);
    }

}

